home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 28
/
Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso
/
Aminet
/
gfx
/
misc
/
MesaGL-aux.lha
/
src
/
font.c
< prev
next >
Wrap
C/C++ Source or Header
|
1998-09-12
|
409b
|
27 lines
/*
* font.c
*/
#include <string.h>
#include "gltk.h"
#include "glaux.h"
static GLuint bitmapBase;
void auxCreateFont(void)
{
bitmapBase = glGenLists(256);
if (tkCreateBitmapFont(bitmapBase) == GL_FALSE) {
auxQuit();
}
}
void auxDrawStr(char *str)
{
glPushAttrib(GL_LIST_BIT);
glListBase(bitmapBase);
glCallLists(strlen(str), GL_UNSIGNED_BYTE, (unsigned char *)str);
glPopAttrib();
}